Vue.component("show", {
  // 模板语法
  props: ["role"],
  template: `
    <div>
        <ul>
            <li v-for="item in role">
                {{item}}
            </li>
        </ul>
        </div>`,
});
const box = new Vue({
  el: "#app",
  data: {
    roles: ["李白", "李红", "后挡风"],
  },
});
